.class public Lrexsee/core/appWidget/RexseeAppWidget;
.super Ljava/lang/Object;
.source "RexseeAppWidget.java"

# interfaces
.implements Lrexsee/core/browser/clazz/JavascriptInterface;


# static fields
.field public static final APPWIDGET_SETUP_ARGUMENT:Ljava/lang/String; = "appWidgetSetup=true"

.field public static final DATABASE_APPWIDGET:Ljava/lang/String; = "appWidget.db"

.field private static final INTERFACE_NAME:Ljava/lang/String; = "AppWidget"

.field public static final PREFIX_LAYOUT:Ljava/lang/String; = "layout_appwidget_"

.field public static final PREFIX_LAYOUT_CLICKER:Ljava/lang/String; = "appWidgetContainer_"

.field public static final PREFIX_LAYOUT_LABEL:Ljava/lang/String; = "appWidgetLabel_"

.field public static final TABLE_APPWIDGET:Ljava/lang/String; = "appWidget"


# instance fields
.field private final mBrowser:Lrexsee/core/browser/Browser;

.field private final mContext:Landroid/content/Context;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 1
    .param p1, "context"    # Landroid/content/Context;

    .prologue
    .line 63
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 64
    const/4 v0, 0x0

    iput-object v0, p0, Lrexsee/core/appWidget/RexseeAppWidget;->mBrowser:Lrexsee/core/browser/Browser;

    .line 65
    iput-object p1, p0, Lrexsee/core/appWidget/RexseeAppWidget;->mContext:Landroid/content/Context;

    .line 66
    return-void
.end method

.method public constructor <init>(Lrexsee/core/browser/Browser;)V
    .locals 1
    .param p1, "browser"    # Lrexsee/core/browser/Browser;

    .prologue
    .line 67
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 68
    iput-object p1, p0, Lrexsee/core/appWidget/RexseeAppWidget;->mBrowser:Lrexsee/core/browser/Browser;

    .line 69
    invoke-virtual {p1}, Lrexsee/core/browser/Browser;->getContext()Landroid/content/Context;

    move-result-object v0

    iput-object v0, p0, Lrexsee/core/appWidget/RexseeAppWidget;->mContext:Landroid/content/Context;

    .line 70
    return-void
.end method

.method private getLayout(Ljava/lang/String;)Lrexsee/core/appWidget/AppWidgetLayout;
    .locals 7
    .param p1, "name"    # Ljava/lang/String;

    .prologue
    const/4 v5, 0x0

    const-string v6, "id"

    .line 48
    if-eqz p1, :cond_0

    const-string v3, ""

    invoke-virtual {p1, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_1

    :cond_0
    move-object v3, v5

    .line 59
    :goto_0
    return-object v3

    .line 50
    :cond_1
    new-instance v0, Lrexsee/core/appWidget/AppWidgetLayout;

    invoke-direct {v0}, Lrexsee/core/appWidget/AppWidgetLayout;-><init>()V

    .line 52
    .local v0, "layout":Lrexsee/core/appWidget/AppWidgetLayout;
    iget-object v3, p0, Lrexsee/core/appWidget/RexseeAppWidget;->mContext:Landroid/content/Context;

    invoke-virtual {v3}, Landroid/content/Context;->getPackageName()Ljava/lang/String;

    move-result-object v1

    .line 53
    .local v1, "packageName":Ljava/lang/String;
    iget-object v3, p0, Lrexsee/core/appWidget/RexseeAppWidget;->mContext:Landroid/content/Context;

    invoke-virtual {v3}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    .line 55
    .local v2, "r":Landroid/content/res/Resources;
    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "layout_appwidget_"

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    const-string v4, "layout"

    invoke-virtual {v2, v3, v4, v1}, Landroid/content/res/Resources;->getIdentifier(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I

    move-result v3

    iput v3, v0, Lrexsee/core/appWidget/AppWidgetLayout;->layout:I

    .line 56
    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "appWidgetContainer_"

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    const-string v4, "id"

    invoke-virtual {v2, v3, v6, v1}, Landroid/content/res/Resources;->getIdentifier(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I

    move-result v3

    iput v3, v0, Lrexsee/core/appWidget/AppWidgetLayout;->clicker:I

    .line 57
    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "appWidgetLabel_"

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    const-string v4, "id"

    invoke-virtual {v2, v3, v6, v1}, Landroid/content/res/Resources;->getIdentifier(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I

    move-result v3

    iput v3, v0, Lrexsee/core/appWidget/AppWidgetLayout;->label:I

    .line 59
    iget v3, v0, Lrexsee/core/appWidget/AppWidgetLayout;->layout:I

    if-eqz v3, :cond_2

    iget v3, v0, Lrexsee/core/appWidget/AppWidgetLayout;->clicker:I

    if-eqz v3, :cond_2

    iget v3, v0, Lrexsee/core/appWidget/AppWidgetLayout;->label:I

    if-nez v3, :cond_3

    :cond_2
    move-object v3, v5

    goto :goto_0

    :cond_3
    move-object v3, v0

    goto :goto_0
.end method


# virtual methods
.method public add(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    .locals 9
    .param p1, "url"    # Ljava/lang/String;
    .param p2, "label"    # Ljava/lang/String;
    .param p3, "layout"    # Ljava/lang/String;

    .prologue
    const/4 v6, -0x1

    const-string v5, ";"

    const-string v5, "\', \'"

    .line 112
    :try_start_0
    iget-object v5, p0, Lrexsee/core/appWidget/RexseeAppWidget;->mContext:Landroid/content/Context;

    check-cast v5, Landroid/app/Activity;

    invoke-virtual {v5}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object v5

    invoke-virtual {v5}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;

    move-result-object v2

    .line 113
    .local v2, "extras":Landroid/os/Bundle;
    if-nez v2, :cond_0

    move v4, v6

    .line 114
    .local v4, "wid":I
    :goto_0
    if-gtz v4, :cond_1

    .line 130
    .end local v2    # "extras":Landroid/os/Bundle;
    .end local v4    # "wid":I
    .end local p0    # "this":Lrexsee/core/appWidget/RexseeAppWidget;
    :goto_1
    return-void

    .line 113
    .restart local v2    # "extras":Landroid/os/Bundle;
    .restart local p0    # "this":Lrexsee/core/appWidget/RexseeAppWidget;
    :cond_0
    const-string v5, "appWidgetId"

    const/4 v6, 0x0

    invoke-virtual {v2, v5, v6}, Landroid/os/Bundle;->getInt(Ljava/lang/String;I)I

    move-result v5

    move v4, v5

    goto :goto_0

    .line 115
    .restart local v4    # "wid":I
    :cond_1
    iget-object v5, p0, Lrexsee/core/appWidget/RexseeAppWidget;->mContext:Landroid/content/Context;

    const-string v6, "appWidget.db"

    const/4 v7, 0x0

    const/4 v8, 0x0

    invoke-virtual {v5, v6, v7, v8}, Landroid/content/Context;->openOrCreateDatabase(Ljava/lang/String;ILandroid/database/sqlite/SQLiteDatabase$CursorFactory;)Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v1

    .line 116
    .local v1, "db":Landroid/database/sqlite/SQLiteDatabase;
    const-string v5, "CREATE TABLE if not exists appWidget (id int, url TEXT, label TEXT, layout TEXT, Primary key(id));"

    invoke-virtual {v1, v5}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V

    .line 117
    new-instance v5, Ljava/lang/StringBuilder;

    const-string v6, "SELECT * from appWidget where id="

    invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v5, v4}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string v6, ";"

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    const/4 v6, 0x0

    invoke-virtual {v1, v5, v6}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v0

    .line 118
    .local v0, "cursor":Landroid/database/Cursor;
    if-eqz v0, :cond_2

    invoke-interface {v0}, Landroid/database/Cursor;->getCount()I

    move-result v5

    if-nez v5, :cond_3

    .line 119
    :cond_2
    new-instance v5, Ljava/lang/StringBuilder;

    const-string v6, "INSERT INTO appWidget VALUES ("

    invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v5, v4}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string v6, ", \'"

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string v6, "\', \'"

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string v6, "\', \'"

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string v6, "\');"

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    move-object v3, v5

    .line 122
    .local v3, "sql":Ljava/lang/String;
    :goto_2
    invoke-virtual {v1, v3}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V

    .line 123
    invoke-interface {v0}, Landroid/database/Cursor;->close()V

    .line 124
    invoke-virtual {v1}, Landroid/database/sqlite/SQLiteDatabase;->close()V

    .line 125
    const/4 v5, 0x1

    new-array v5, v5, [I

    const/4 v6, 0x0

    aput v4, v5, v6

    invoke-virtual {p0, v5}, Lrexsee/core/appWidget/RexseeAppWidget;->update([I)V

    .line 126
    iget-object v5, p0, Lrexsee/core/appWidget/RexseeAppWidget;->mContext:Landroid/content/Context;

    check-cast v5, Landroid/app/Activity;

    const/4 v6, -0x1

    new-instance v7, Landroid/content/Intent;

    invoke-direct {v7}, Landroid/content/Intent;-><init>()V

    const-string v8, "appWidgetId"

    invoke-virtual {v7, v8, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    move-result-object v7

    invoke-virtual {v5, v6, v7}, Landroid/app/Activity;->setResult(ILandroid/content/Intent;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 129
    .end local v0    # "cursor":Landroid/database/Cursor;
    .end local v1    # "db":Landroid/database/sqlite/SQLiteDatabase;
    .end local v2    # "extras":Landroid/os/Bundle;
    .end local v3    # "sql":Ljava/lang/String;
    .end local v4    # "wid":I
    :goto_3
    iget-object p0, p0, Lrexsee/core/appWidget/RexseeAppWidget;->mContext:Landroid/content/Context;

    .end local p0    # "this":Lrexsee/core/appWidget/RexseeAppWidget;
    check-cast p0, Landroid/app/Activity;

    invoke-virtual {p0}, Landroid/app/Activity;->finish()V

    goto/16 :goto_1

    .line 121
    .restart local v0    # "cursor":Landroid/database/Cursor;
    .restart local v1    # "db":Landroid/database/sqlite/SQLiteDatabase;
    .restart local v2    # "extras":Landroid/os/Bundle;
    .restart local v4    # "wid":I
    .restart local p0    # "this":Lrexsee/core/appWidget/RexseeAppWidget;
    :cond_3
    :try_start_1
    new-instance v5, Ljava/lang/StringBuilder;

    const-string v6, "UPDATE appWidget SET url=\'"

    invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v5, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string v6, "\',label=\'"

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string v6, "\',layout=\'"

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string v6, "\' where id="

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5, v4}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string v6, ";"

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    move-result-object v5

    move-object v3, v5

    goto :goto_2

    .line 127
    .end local v0    # "cursor":Landroid/database/Cursor;
    .end local v1    # "db":Landroid/database/sqlite/SQLiteDatabase;
    .end local v2    # "extras":Landroid/os/Bundle;
    .end local v4    # "wid":I
    :catch_0
    move-exception v5

    goto :goto_3
.end method

.method public getInheritInterface(Lrexsee/core/browser/Browser;)Lrexsee/core/browser/clazz/JavascriptInterface;
    .locals 0
    .param p1, "childBrowser"    # Lrexsee/core/browser/Browser;

    .prologue
    .line 28
    return-object p0
.end method

.method public getInterfaceName()Ljava/lang/String;
    .locals 2

    .prologue
    .line 24
    iget-object v0, p0, Lrexsee/core/appWidget/RexseeAppWidget;->mBrowser:Lrexsee/core/browser/Browser;

    if-nez v0, :cond_0

    const/4 v0, 0x0

    :goto_0
    return-object v0

    :cond_0
    new-instance v0, Ljava/lang/StringBuilder;

    iget-object v1, p0, Lrexsee/core/appWidget/RexseeAppWidget;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v1, v1, Lrexsee/core/browser/Browser;->application:Lrexsee/core/application/RexseeApplication;

    iget-object v1, v1, Lrexsee/core/application/RexseeApplication;->resources:Lrexsee/core/application/Resource;

    iget-object v1, v1, Lrexsee/core/application/Resource;->prefix:Ljava/lang/String;

    invoke-static {v1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v1, "AppWidget"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    goto :goto_0
.end method

.method public getNewInterface(Lrexsee/core/browser/Browser;)Lrexsee/core/browser/clazz/JavascriptInterface;
    .locals 1
    .param p1, "childBrowser"    # Lrexsee/core/browser/Browser;

    .prologue
    .line 32
    new-instance v0, Lrexsee/core/appWidget/RexseeAppWidget;

    invoke-direct {v0, p1}, Lrexsee/core/appWidget/RexseeAppWidget;-><init>(Lrexsee/core/browser/Browser;)V

    return-object v0
.end method

.method public remove([I)V
    .locals 6
    .param p1, "appWidgetIds"    # [I

    .prologue
    .line 99
    iget-object v2, p0, Lrexsee/core/appWidget/RexseeAppWidget;->mContext:Landroid/content/Context;

    const-string v3, "appWidget.db"

    const/4 v4, 0x0

    const/4 v5, 0x0

    invoke-virtual {v2, v3, v4, v5}, Landroid/content/Context;->openOrCreateDatabase(Ljava/lang/String;ILandroid/database/sqlite/SQLiteDatabase$CursorFactory;)Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v0

    .line 100
    .local v0, "db":Landroid/database/sqlite/SQLiteDatabase;
    const/4 v1, 0x0

    .local v1, "i":I
    :goto_0
    array-length v2, p1

    if-lt v1, v2, :cond_0

    .line 106
    invoke-virtual {v0}, Landroid/database/sqlite/SQLiteDatabase;->close()V

    .line 107
    return-void

    .line 102
    :cond_0
    :try_start_0
    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "DELETE FROM appWidget where id="

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    aget v3, p1, v1

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, ";"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 100
    :goto_1
    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    .line 103
    :catch_0
    move-exception v2

    goto :goto_1
.end method

.method public update([I)V
    .locals 17
    .param p1, "appWidgetIds"    # [I

    .prologue
    .line 72
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/core/appWidget/RexseeAppWidget;->mContext:Landroid/content/Context;

    move-object v13, v0

    const-string v14, "appWidget.db"

    const/4 v15, 0x0

    const/16 v16, 0x0

    invoke-virtual/range {v13 .. v16}, Landroid/content/Context;->openOrCreateDatabase(Ljava/lang/String;ILandroid/database/sqlite/SQLiteDatabase$CursorFactory;)Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v3

    .line 73
    .local v3, "db":Landroid/database/sqlite/SQLiteDatabase;
    const/4 v4, 0x0

    .local v4, "i":I
    :goto_0
    move-object/from16 v0, p1

    array-length v0, v0

    move v13, v0

    if-lt v4, v13, :cond_1

    .line 96
    invoke-virtual {v3}, Landroid/database/sqlite/SQLiteDatabase;->close()V

    .line 97
    :cond_0
    return-void

    .line 74
    :cond_1
    aget v5, p1, v4

    .line 76
    .local v5, "id":I
    :try_start_0
    new-instance v13, Ljava/lang/StringBuilder;

    const-string v14, "SELECT * from appWidget where id="

    invoke-direct {v13, v14}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v13, v5}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v13

    const-string v14, ";"

    invoke-virtual {v13, v14}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v13

    invoke-virtual {v13}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v13

    const/4 v14, 0x0

    invoke-virtual {v3, v13, v14}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v2

    .line 77
    .local v2, "cursor":Landroid/database/Cursor;
    invoke-interface {v2}, Landroid/database/Cursor;->getCount()I

    move-result v13

    if-eqz v13, :cond_0

    .line 78
    invoke-interface {v2}, Landroid/database/Cursor;->moveToFirst()Z

    .line 79
    const/4 v13, 0x1

    invoke-interface {v2, v13}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v11

    .line 80
    .local v11, "url":Ljava/lang/String;
    const/4 v13, 0x2

    invoke-interface {v2, v13}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v7

    .line 81
    .local v7, "label":Ljava/lang/String;
    const/4 v13, 0x3

    invoke-interface {v2, v13}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v9

    .line 82
    .local v9, "layoutId":Ljava/lang/String;
    invoke-interface {v2}, Landroid/database/Cursor;->close()V

    .line 83
    move-object/from16 v0, p0

    move-object v1, v9

    invoke-direct {v0, v1}, Lrexsee/core/appWidget/RexseeAppWidget;->getLayout(Ljava/lang/String;)Lrexsee/core/appWidget/AppWidgetLayout;

    move-result-object v8

    .line 84
    .local v8, "layout":Lrexsee/core/appWidget/AppWidgetLayout;
    if-eqz v8, :cond_2

    .line 85
    new-instance v12, Landroid/widget/RemoteViews;

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/core/appWidget/RexseeAppWidget;->mContext:Landroid/content/Context;

    move-object v13, v0

    invoke-virtual {v13}, Landroid/content/Context;->getPackageName()Ljava/lang/String;

    move-result-object v13

    iget v14, v8, Lrexsee/core/appWidget/AppWidgetLayout;->layout:I

    invoke-direct {v12, v13, v14}, Landroid/widget/RemoteViews;-><init>(Ljava/lang/String;I)V

    .line 86
    .local v12, "views":Landroid/widget/RemoteViews;
    iget v13, v8, Lrexsee/core/appWidget/AppWidgetLayout;->label:I

    invoke-static {v7}, Landroid/text/Html;->fromHtml(Ljava/lang/String;)Landroid/text/Spanned;

    move-result-object v14

    invoke-virtual {v12, v13, v14}, Landroid/widget/RemoteViews;->setTextViewText(ILjava/lang/CharSequence;)V

    .line 87
    new-instance v6, Landroid/content/Intent;

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/core/appWidget/RexseeAppWidget;->mContext:Landroid/content/Context;

    move-object v13, v0

    const-class v14, Lrexsee/core/receiver/_Receiver;

    invoke-direct {v6, v13, v14}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 88
    .local v6, "intent":Landroid/content/Intent;
    invoke-static {v11}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v13

    invoke-virtual {v6, v13}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;

    .line 89
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/core/appWidget/RexseeAppWidget;->mContext:Landroid/content/Context;

    move-object v13, v0

    const/4 v14, 0x0

    const/high16 v15, 0x8000000

    invoke-static {v13, v14, v6, v15}, Landroid/app/PendingIntent;->getBroadcast(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;

    move-result-object v10

    .line 90
    .local v10, "pendingIntent":Landroid/app/PendingIntent;
    iget v13, v8, Lrexsee/core/appWidget/AppWidgetLayout;->clicker:I

    invoke-virtual {v12, v13, v10}, Landroid/widget/RemoteViews;->setOnClickPendingIntent(ILandroid/app/PendingIntent;)V

    .line 91
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/core/appWidget/RexseeAppWidget;->mContext:Landroid/content/Context;

    move-object v13, v0

    invoke-static {v13}, Landroid/appwidget/AppWidgetManager;->getInstance(Landroid/content/Context;)Landroid/appwidget/AppWidgetManager;

    move-result-object v13

    invoke-virtual {v13, v5, v12}, Landroid/appwidget/AppWidgetManager;->updateAppWidget(ILandroid/widget/RemoteViews;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 73
    .end local v2    # "cursor":Landroid/database/Cursor;
    .end local v6    # "intent":Landroid/content/Intent;
    .end local v7    # "label":Ljava/lang/String;
    .end local v8    # "layout":Lrexsee/core/appWidget/AppWidgetLayout;
    .end local v9    # "layoutId":Ljava/lang/String;
    .end local v10    # "pendingIntent":Landroid/app/PendingIntent;
    .end local v11    # "url":Ljava/lang/String;
    .end local v12    # "views":Landroid/widget/RemoteViews;
    :cond_2
    :goto_1
    add-int/lit8 v4, v4, 0x1

    goto/16 :goto_0

    .line 93
    :catch_0
    move-exception v13

    goto :goto_1
.end method
